package com.wjk.cms.exception;

public class AuthenticationException extends RuntimeException {

    private Integer code;

    public AuthenticationException() {
        this(402, null, null);
    }

    public AuthenticationException(Integer code) {
        this(code, null, null);
    }

    public AuthenticationException(String message) {
        this(402, message, null);
    }

    public AuthenticationException(Throwable cause) {
        this(402, null, cause);
    }

    public AuthenticationException(Integer code, String message) {
        this(code, message, null);
    }

    public AuthenticationException(Integer code, Throwable cause) {
        this(code, null, cause);
    }

    public AuthenticationException(String message, Throwable cause) {
        this(402, message, cause);
    }

    public AuthenticationException(Integer code, String message, Throwable cause) {
        super("请登录!", cause);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

}
